<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script>
        function o1(){
            window.open("./gg.html")
        }
        function o2(){
            window.open("./gg.html","","height=50,width=50,top=50,toolbar=0,location=0,scrollbars=0")
        }
        function o4(){
            window.close()
        }
    </script>
</head>
<body>
    <h1>窗口事件</h1>
    <p><input type="button" value="弹出窗口" onclick="o1()"></p>
    <p><input type="button" value="弹出固定大小窗口且无菜单栏等组件" onclick="o2()"></p>
    <p><input type="button" value="弹出全屏显示的窗口" onclick="o3()"></p>
    <p><input type="button" value="关闭窗口" onclick="o4()"></p>
    
</body>
</html>